﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace MyMoviesBrowserLibrary
{
    public partial class Season
    {
        public string ImageLocation 
        {
            get 
            {
                if (Series == null)
                    return "";
                string imageLocation = Path.Combine(Series.FolderLocation, string.Format("Season {0}\\folder.jpg",SeasonNumber)) ;
                if(File.Exists(imageLocation))
                    return imageLocation;
                else
                    return "";                
            } 
        }
        public string Name
        {
            get
            {
                if (SeasonNumber == -1)
                    return "Actors";
                return string.Format("Season {0}", SeasonNumber);
            }
        }
    }
}
